package com.wentao.thisCommon.common;

import com.wentao.thisCommon.annotation.ItemVaild;

import java.lang.reflect.Method;

public class EntityCollectItem {
    public EntityCollectItem() {
        isNull = true;
        isEmpty = true;
        isAlias = false;
        isRegular = false;
        isChildType = false;
    }

    public boolean isNull() {
        return isNull;
    }

    public void setNull(boolean isNull) {
        this.isNull = isNull;
    }

    public String getRegular() {
        return regular;
    }

    public void setRegular(String regular) {
        this.regular = regular;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Method getWriteMethod() {
        return writeMethod;
    }

    public void setWriteMethod(Method writeMethod) {
        this.writeMethod = writeMethod;
    }

    public Method getReadMethod() {
        return readMethod;
    }

    public void setReadMethod(Method readMethod) {
        this.readMethod = readMethod;
    }

    public Class getChildType() {
        return childType;
    }

    public void setChildType(Class childType) {
        this.childType = childType;
    }

    public boolean isAlias() {
        return isAlias;
    }

    public void setAlias(boolean isAlias) {
        this.isAlias = isAlias;
    }

    public boolean isChildType() {
        return null != this.childType;
    }

//    public void isChildType(boolean isChildType) {
//        this.isChildType = isChildType;
//    }

    public boolean isRegular() {
        return isRegular;
    }

    public void setRegular(boolean isRegular) {
        this.isRegular = isRegular;
    }

    public boolean isEmpty() {
        return isEmpty;
    }

    public void setEmpty(boolean isEmpty) {
        this.isEmpty = isEmpty;
    }

    public ItemVaild getItemVaild() {
        return itemVaild;
    }

    public void setItemVaild(ItemVaild itemVaild) {
        this.itemVaild = itemVaild;
    }


    private boolean isNull;
    private boolean isEmpty;
    private boolean isAlias;
    private boolean isRegular;
    private String regular;
    private String name;
    private String alias;
    private Method writeMethod;
    private Method readMethod;
    private Class childType;
    private boolean isChildType;
    private ItemVaild itemVaild;

}
